import service from '@/utils/request'

export const usePatientApi = (id: Number) => {
	return service.get('/sys/patient/' + id)
}

export const usePatientSubmitApi = (dataForm: any) => {
	if (dataForm.id) {
		return service.put('/sys/patient', dataForm)
	} else {
		return service.post('/sys/patient/save', dataForm)
	}
}

export const usePatientListApi = (dataForm: any) => {
	return service.post('/sys/patient/list', dataForm)
}

export const usePatientsellistApi = (dataForm: any) => {
	return service.post('/sys/patient/sellist', dataForm)
}
